package com.example.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

@org.springframework.web.bind.annotation.RestController
public class RestController {
    @Autowired
    FeignClient feignClient;

   @RequestMapping("test")
    public String test(){
       String hello = feignClient.hello();
        return hello;
    }
}
